package cn.edu.xhu.library_management.user.client;

import cn.edu.xhu.library_management.common.entity.R;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: MMJ
 * @Date: 2023 - 04 - 24
 * @Description: 区域Client
 */
@FeignClient("lmArea")
public interface AreaClient {

    //通过图书馆ID和特定类型查询楼层信息
    @GetMapping("/lm_area/floor/type")
    public R findFloorsByType(@RequestParam("infoId") Integer infoId, @RequestParam("type") Integer type);

    // 通过楼层ID查询所有区域信息 /area/type
    @GetMapping("/lm_area/area")
    public R findAreasByFloorId(@RequestParam("FloorId") Integer FloorId);
    //通过楼层ID和特定类型查询区域信息
    @GetMapping("/lm_area/area/type")
    public R findAreasByType(@RequestParam("FloorId") Integer FloorId,@RequestParam("type") Integer type);

    //通过区域Id,获取物品数量
    @GetMapping("/lm_area/itemNum")
    public R findItemNumsByAreaId(@RequestParam("areaId") Integer areaId);
}
